<template>
	<view class="container">
		<rich-text :nodes="html"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:"",
				html: ``
			}
		},
		onLoad(e){
			this.id = e.id
		},
		onShow(){
			this.selectById();
		},
		methods: {
			selectById() {
				this.$http('/admin-api/selectById', 'GET', {
					id: this.id
				}).then(res => {
					this.html = res.content
				})
			},
		}
	}
</script>

<style>
.classTest{
	color: blue !important;
}
</style>
